/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pasta;

import rice.p2p.commonapi.Id;
import rice.p2p.past.PastContent;
import rice.p2p.past.ContentHashPastContent;


/**
 *
 * @author Junior
 */
public class Fragment extends ContentHashPastContent  {

	private byte [] content;

	public Fragment (Id id, byte [] content) {
		super(id);
		this.content = content;
	}

        public byte[] getContent(){
            return content;
        }

        @Override public PastContent checkInsert(Id id, PastContent existingContent) {
            return this;
        }
 }
